package picounit.java.collection;

class NotFilter<T> implements Filter<T> {
    public NotFilter(Filter<T> filter) {
        this.filter = filter;
    }

    public boolean passes(T instance) {
        return !filter.passes(instance);
    }

    private final Filter<T> filter;
}
